package personal.vivian.dto;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.Date;

@Slf4j
public class Employee implements Serializable {
    private String name;
    private String addr;
    private Date erollDate;
    private Date leaveDate;
    Logger logger=LoggerFactory.getLogger(Employee.class);
    public void raise(Number number){
        logger.info("employee raise");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public Date getErollDate() {
        return erollDate;
    }

    public void setErollDate(Date erollDate) {
        this.erollDate = erollDate;
    }

    public Date getLeaveDate() {
        return leaveDate;
    }

    public void setLeaveDate(Date leaveDate) {
        this.leaveDate = leaveDate;
    }
}
